
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="../css/admin.css" rel="stylesheet" type="text/css" />
<title></title>
</head>
<body>


<script language="JavaScript" type="text/JavaScript">
<!--
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_validateForm() { //v4.0
  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
    if (val) { nm=val.name; if ((val=val.value)!="") {
      if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
        if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
      } else if (test!='R') { num = parseFloat(val);
        if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
        if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
          min=test.substring(8,p); max=test.substring(p+1);
          if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
    } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }
  } if (errors) alert('The following error(s) occurred:\n'+errors);
  document.MM_returnValue = (errors == '');
}
//-->
</script>

<script language="JavaScript" type="text/JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}
//-->
</script>

<script language="JavaScript"> 
<!-- 
function validate_ascii_data(urstr) 
{ 
  var i; var result; 
  for(i=0; i<urstr.length; i++) { 
    if((urstr.charAt(i) < " ") || (urstr.charAt(i) > "~")) 
      return false; 
  } 
  return true; 
} 
function validate_email(email) 
{ 
  if (!validate_ascii_data (email)) { 
    return false 
  } 

  var invalidChars = "\"|&;<>!*\'\\"   ; 

  for (var i = 0; i < invalidChars.length; i++) { 
    if (email.indexOf(invalidChars.charAt(i)) != -1) { 
      return false; 
    } 
  } 
  
  if (email.indexOf("@")==-1){ 
     return false; 
  } 
         
  if (email.indexOf(" ") != -1){ 
    return false; 
  } 

  if (window.RegExp) { 

    var reg1str = "(@.*@)|(\\.\\.)|(@\\.)|(\\.@)|(^\\.)"; 
    var reg2str = "^.+\\@(\\[?)[a-zA-Z0-9\\-\\.]+\\.([a-zA-Z]{2,3}|[0-9]{1,3})(\\]?)$"; 
     
    var reg1 = new RegExp (reg1str); 
    var reg2 = new RegExp (reg2str); 
    if (reg1.test(email) || !reg2.test(email)) { 
      return false; 
    } 
  } 
  return true; 
} 




function checkForm(theform) { 

if (theform.username.value=="") { 
    theform.username.focus(); 
    alert("You didn't specify a valid Username"); 
    return false; } 

if (theform.password.value=="") { 
    theform.password.focus(); 
    alert("You didn't specify a valid Password"); 
    return false; } 

if (theform.verify.value=="") { 
    theform.verify.focus(); 
    alert("You didn't specify a valid Verify"); 
    return false; } 

if (theform.verify.value!=theform.password.value) { 
    theform.verify.focus(); 
    alert("You didn't specify a valid Verify"); 
    return false; } 

if (theform.email.value=="") { 
    theform.email.focus(); 
    alert("You didn't specify a valid Email Address"); 
    return false; } 

}
//--> 
</script> 


<form action="a_account.php" method="post" name="theform" onSubmit="return checkForm(theform);">
<!--hidden filed-->
<input name="action" type="hidden" value="add">

<br> 
<table width="95%" border="0" align="center">
  <tr> 
    <td align="right">
	
	<input type="image" src="../images/admin/bt_cancel.gif" width="78" height="23" onclick="Redirect('a_account.php',1);return false;"> 
	<input type="image" src="../images/admin/bt_save.gif" width="76" height="22"> 


    </td>
  </tr>
</table>
<table width="95%" border="0" align="center">
  <tr>
    <td valign="top">&nbsp;</td>
  </tr>
  <tr> 
    <td valign="top">



<table  border="0" cellspacing="2" cellpadding="0">
                          <tr>
                            <td width="120" >Username :</td>
                            <td ><input name="username" class="text" type="text" id="username" style="width:195px"></td>
                            </tr>
                          <tr>
                            <td >Password :</td>
                            <td ><input name="password" class="text" type="password" id="password" style="width:195px"></td>
                            </tr>
                          <tr>
                            <td >Verify :</td>
                            <td ><input name="verify" class="text" type="password" id="verify" style="width:195px"></td>
                          </tr>
                          
                          <tr>
                            <td >Name :</td>
                            <td ><input name="name" class="text" type="text" id="name" style="width:195px"></td>
                          </tr>
                          
                          <tr>
                              <td >Tel :</td>
                              <td><input name="tel" class="text" type="text" id="tel" style="width:195px"></td>
                            </tr>
                            
                            <tr>
                              <td >Fax :</td>
                              <td><input name="fax" class="text" type="text" id="fax" style="width:195px"></td>
                            </tr>
                            
                            <tr>
                              <td >Email :</td>
                              <td ><input name="email" class="text" type="text" id="email" style="width:195px"></td>
                          </tr>
                        </table>
                         </td></tr></table> 					  
						  
						  
                        

<table width="95%" border="0" align="center">
  <tr> 
    <td align="right">
	
	<input type="image" src="../images/admin/bt_cancel.gif" width="78" height="23" onclick="Redirect('a_account.php',1);return false;"> 
	<input type="image" src="../images/admin/bt_save.gif" width="76" height="22"> 


    </td>
  </tr>
</table>


</body>
</html>
